package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 循环温度计算 对应表 CM_CYCLE_TEMPERATURE
public class CM_CycleTemperature extends BABaseEntity {
    @Id
    @GenericGenerator(name="cycleTempGenerator", strategy="uuid")
    @GeneratedValue(generator="cycleTempGenerator")
    private String CM_CycleTemperature_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "DEPTH")
    private Double depth;

    @Basic
    @Column(name = "VERTICALDEPTH")
    private Double verticalDepth;

    @Basic
    @Column(name = "TEMPERATURE1")
    private Double temperature1;

    @Basic
    @Column(name = "TEMPERATURE2")
    private Double temperature2;

    @Basic
    @Column(name = "TEMPERATURE3")
    private Double temperature3;

    @Basic
    @Column(name = "TEMPERATURE4")
    private Double temperature4;

    @Basic
    @Column(name = "TEMPERATURE5")
    private Double temperature5;

    @Basic
    @Column(name = "TEMPERATURE6")
    private Double temperature6;

    @Basic
    @Column(name = "MAXTEMPERATUREDEPTH1")
    private Double maxTemperatureDepth1;

    @Basic
    @Column(name = "TEMPERATURE7")
    private Double temperature7;

    @Basic
    @Column(name = "MAXTEMPERATUREDEPTH2")
    private Double maxTemperatureDepth2;

    @Basic
    @Column(name = "TEMPERATURE8")
    private Double temperature8;

    @Basic
    @Column(name = "TEMPERATURE9")
    private Double temperature9;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;

}
